<template>
<div class="addArticle">

  <van-nav-bar
    class="page-nav-bar"
    title="写文章"
    left-text="取消"
    right-text="发布"
    left-arrow
    @click-left="$router.back()"
    @click-right="onClickRight"

  />
  <van-field
    v-model="message"
    rows="5"
    autosize

    type="textarea"
    maxlength="500"
    placeholder="请输入内容"
    show-word-limit
  >


  </van-field>
  <van-uploader v-model="fileList" multiple />

</div>
</template>

<script>
export default {
  name: "addArticle",
  data(){
    return{
      message:'',
      fileList:[]
    }
  },
  methods:{
    onClickRight(){
      console.log(1111)
    }
  }
}
</script>

<style scoped lang="less">
.addArticle{
  /deep/.van-nav-bar__right{
    .van-nav-bar__text{
      color: white ;
    }
  }

}

</style>
